home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
rlib
/
union
< prev
next >
Wrap
Text File
|
1994-10-08
|
449b
|
20 lines
//-------------------------------------------------------------------//
// union
// Syntax: union ( A , B )
// Description:
// The union function returns a vector set that is the union of the
// two sets A, and B.
// See Also: complement, intersection, set
//-------------------------------------------------------------------//
union = function ( A, B )
{
if (A.n == 0 && B.n == 0) { return []; }
return set ( [ A[:] ; B[:] ] )
};